#include <stdio.h>
#include <string.h>

char* my_strstr(char* ch1,char* ch2)
{
    char* p1;
    char* p2;
    char* src=ch1;
    if(*ch2=='\0')
        return ch1;
    while(*src)
    {
        p1=src;
        p2=ch2;
        while((*p1)&&(*p2)&&(*p1==*p2))
        {
            p1++;
            p2++;
        }
        if(*p2=='\0')
        {
            return src;
        }
        src++;
    }
    return NULL;
    
}
int main()
{
    char arr1[]="aabbbccccdddee";
    char arr2[]="ccdd";
    char *pp=my_strstr(arr1,arr2);
    printf("%s\n",pp);
    return 0;
}